 /* ---------------------------------------------------------------------- *
 *																		   *
 *	This code is part of FotoKinect, Spring 2011 by Gianna Badiali,		   *
 *                                                   Gabriel Fernandez,	   *
 *                                                   Kelsey Tripp, and     *
 *                                                   Sam Swarr             *
 *																		   *
 ***************************************************************************/

#include "ColorState.h"
#include "Desk.h"
#include <QStateMachine>
#include <QEvent>
#include <iostream>

ColorState::ColorState(QStateMachine *machine, Desk *desk) :
    QState(machine)
    , m_desk(0)
{
    m_desk=desk;
}

void ColorState::onEntry(QEvent *e){
    m_desk->showColorSelector();
}

void ColorState::onExit(QEvent *e){
    m_desk->hideColorSelector();
}
